<?php // app/plugins/views/content_posts/system_edit.ctp ?>

<?php echo $this->Html->css('difference/difference_games/system_edit')?>
<?php echo $this->Html->script('difference/difference_games/system_edit', array('inline'=> false))?>

<?php echo $this->Html->scriptStart()?>
var differentPoints = <?php echo $this->data['DifferenceGame']['different_points']?>;
var imagePath = '<?php echo Configure::read('Web.differenceImagesUrl')?>';
<?php echo $this->Html->scriptEnd()?>

<div class="flash">
	<?php echo $this->Session->flash();?>
</div>
<div id="form-area" class="form-wrapper">
	<?php echo $this->Form->create('DifferenceGame', array('type'=>'POST'));?>
	<?php echo $this->Form->select('status', array('public' => 'public', 'pending' => 'pending'), null, array('label' => 'Status'), $empty = false);?>
	<?php echo $this->Form->input('seo_name');?>
	<?php echo $this->Form->input('name');?>
	<?php echo $this->Form->input('picture1');?>
	<?php echo $this->Form->input('picture2');?>
	<button onclick="showPictures();return false;">Show Pictures</button>
	<div id="diff-picture-area">
		<ul class="horizontal">
			<li>
				<div id="div-picture1" style="position:relative;">
					<img id="picture1" />
				</div>
			</li>
			<li>&nbsp;</li>
			<li>
				<div id="div-picture2" style="position:relative">
					<img id="picture2" />
				</div>
			</li>
		</ul>
	</div>
	<div style="clear:both"></div>
	<?php echo $this->Form->input('level', array('label' => 'Level (0-999)'));?>
	<?php echo $this->Form->input('different_points', array('type' => 'hidden'));?>
	<?php echo $this->Form->input('description', array('style' => 'width:100%'));?>
	<?php echo $this->Form->end('Submit');?>
</div>

<?php echo $this->Html->scriptStart(array('inline' => false))?>
	bkLib.onDomLoaded(function() {
		nicEditors.allTextAreas({
			fullPanel : true, 
			iconsPath:'http://youbrainy.com/js/nicEdit/nicEditorIcons.gif'
		});
	});
<?php echo $this->Html->scriptEnd();?>
